package com.ruoyi.chat.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 知识库角色关联对象 dataset_role
 * 
 * @author ruoyi
 * @date 2025-03-25
 */
public class DatasetRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 知识库ID */
    @Excel(name = "知识库ID")
    private Long datasetId;

    /** 角色id */
    @Excel(name = "角色id")
    private Long roleId;

    public DatasetRole(){}

    public DatasetRole(Long datasetId, Long roleId) {
        this.datasetId = datasetId;
        this.roleId = roleId;
    }

    public void setDatasetId(Long datasetId) 
    {
        this.datasetId = datasetId;
    }

    public Long getDatasetId() 
    {
        return datasetId;
    }

    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("datasetId", getDatasetId())
            .append("roleId", getRoleId())
            .toString();
    }
}
